package org.ekstrabilet.main.gui.tabs;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.ekstrabilet.game.gui.AddGameTab;
import org.ekstrabilet.main.gui.panes.Panes;
import org.ekstrabilet.stadium.StadiumPane;

/**
 * Technical service tab GUI class.
 *
 */
public class TechTab {
	
	private JPanel pane;
	private JTabbedPane tab;
	private JPanel matchTab;
	private JPanel stadiumTab;
	
	public TechTab() {
		matchTab = new AddGameTab().getPane();
		stadiumTab = new StadiumPane();
		
		tab = new JTabbedPane();
		tab.add(Panes.MATCH, matchTab);
		tab.add(Panes.STADIUM, stadiumTab);
		
		pane = new JPanel(new BorderLayout(10, 10));
		pane.add(tab);
	}
	
	public JPanel getTab() {
		return pane;
	}
}
